package com.zhangdi.dwperms.entity;

import com.zhangdi.dwdata.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by zhangdi on 2020/08/25 17:00:05.
 */
@Entity
@Table(name = "oauth_info")
public class OAuth extends BaseEntity {
    @ManyToOne(fetch = FetchType.LAZY)
    private User user;
    private String tokenType;
    private String uid;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }
}
